package com.meilai.project.service.business.saleOrder;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.meilai.project.dto.base.ApiResult;
import com.meilai.project.dto.business.intentionScheme.*;
import com.meilai.project.dto.business.saleOrder.SaleIntentionOrderDTO;
import com.meilai.project.dto.business.saleOrder.SaleIntentionOrderSaveDTO;
import com.meilai.project.dto.business.saleOrder.SaleMapSearchDTO;
import com.meilai.project.entity.business.customer.CustomerInfo;
import com.meilai.project.vo.business.saleOrder.SaleIntentionOrderVO;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author ykb
 * @since 2022-03-05
 */
public interface SaleIntentionOrderService {

	List<BuildingPointVO> search(@RequestBody SaleMapSearchDTO searchDTO);

	ApiResult<SaleIntentionOrderSaveDTO> save(SaleIntentionOrderSaveDTO dto);


	Page<SaleIntentionOrderVO> selectPageList(Integer page, Integer page_size, String beginDate, String endDate, SaleIntentionOrderDTO searchDTO);

    List<CustomerInfo> listCustomerOfSale(Long sale_id);
}
